export function getCurrentDateTime() {
	const now = new Date();
	const year = now.getFullYear();
	const month = now.getMonth() + 1;
	const day = now.getDate();
	const hour = now.getHours();
	const minute = now.getMinutes();
	const second = now.getSeconds();

	// 补零处理
	const format = (n) => n.toString().padStart(2, '0');

	return {
		year,
		month,
		day,
		hour,
		minute,
		second,
		// 完整字符串格式
		datetime: `${year}-${format(month)}-${format(day)} ${format(hour)}:${format(minute)}:${format(second)}`
	};
}